﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication5.Feature
{
    internal class CrewSetter
    {
        public void SetCrew(ref MovieJson movieJson, List<Crew> crew)
        {
            foreach (var member in crew)
            {
                var job = member.job.ToLowerInvariant();
                if (job.Equals("director"))
                    movieJson.director = member.name;
            }
        }
    }
}
